package top.yamhk.agent.entity.dto;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * 用户实体类
 *
 * @author 庆 HongKong
 * @date 2021/4/18 14:40
 */
@Getter
@Setter
//@SuperBuilder
@EqualsAndHashCode(callSuper = true)
public abstract class User extends BaseSrc {
    /**
     * 积分
     */
    protected double integral;
    /**
     * 账户
     */
    protected String username;
    /**
     * token
     */
    private String authorization;
    /**
     * uid
     */
    private String uid;
    /**
     * 昵称
     */
    private String nickname;
    /**
     * 密码
     */
    private String password;
    /**
     * 手机
     */
    private String phoneNumber;
    /**
     * 银行卡信息
     */
    private Bank bank;

    public abstract boolean judgeOnline();


    @Data
    public static class Bank {
        /**
         * 真名
         */
        private String realName;
    }
}